package com.grad.webstudy.enums;

/**
 * @Description:
 * @Author: zjf
 * @Date: 2020/1/15 17:30.
 */
public enum ExceptionEnums {

    INTERNAL_ERROR(1,"程序内部错误"),//程序错误
    PARAM_ERROR(2,"参数错误"),//参数错误
    URL_NOT_EXISTS(3,"URL不存在"),//url不存在
    UNLOGIN_ERROR(4,"登录过期"),//登录过期
    AUTH_FORBIDDEN(5,"无权限"),//
    SERVICE_ERROR(6,"服务繁忙，请稍后再试"),
    MANAGER_INFO_ERROR(7,"管理员信息错误"),
    REQUEST_METHOD_ERROR(8,"请求方法错误"),
    PARAM_LOSS_ERROR(9,"参数缺失"),//
    VALID_CODE_ERROR(10,"验证码错误"),
    ALIYUN_ERROR(11,"阿里云错误"),
    TOKEN_INVALID(12,"token已失效或者缺失，请重新登录"),
    CUSTOM_ERROR(13,"自定义异常")
    ;

    private int code;
    private String message;
    ExceptionEnums(int code, String message) {
        this.code=code;
        this.message=message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
